I get this error:
Syntax Error, expecting identifier, epecting RPAREN OR OR; on TOKEN X ON 
This is on the following line:
[code]
            else if(Link->Z X;
[/code]